all files / src/ constants.js

100% Statements 21/21
66.67% Branches 4/6
100% Functions 0/0
100% Lines 21/21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36      10× 10× 10× 10× 10× 10×   10× 10× 10× 10×   10×   10× 10× 10×   10× 10×   10× 10×   10×   10×         10×  
// render modes
'use strict';
 
exports.__esModule = true;
var NO_RENDER = { render: false };
exports.NO_RENDER = NO_RENDER;
var SYNC_RENDER = { renderSync: true };
exports.SYNC_RENDER = SYNC_RENDER;
var DOM_RENDER = { build: true };
 
exports.DOM_RENDER = DOM_RENDER;
var EMPTY = {};
exports.EMPTY = EMPTY;
var EMPTY_BASE = '';
 
exports.EMPTY_BASE = EMPTY_BASE;
// is this a DOM environment
var HAS_DOM = typeof document !== 'undefined';
exports.HAS_DOM = HAS_DOM;
var TEXT_CONTENT = !HAS_DOM || 'textContent' in document ? 'textContent' : 'nodeValue';
 
exports.TEXT_CONTENT = TEXT_CONTENT;
var ATTR_KEY = typeof Symbol !== 'undefined' ? Symbol['for']('preactattr') : '__preactattr_';
 
exports.ATTR_KEY = ATTR_KEY;
var UNDEFINED_ELEMENT = 'undefined';
 
exports.UNDEFINED_ELEMENT = UNDEFINED_ELEMENT;
// DOM properties that should NOT have "px" added when numeric
var NON_DIMENSION_PROPS = {
	boxFlex: 1, boxFlexGroup: 1, columnCount: 1, fillOpacity: 1, flex: 1, flexGrow: 1,
	flexPositive: 1, flexShrink: 1, flexNegative: 1, fontWeight: 1, lineClamp: 1, lineHeight: 1,
	opacity: 1, order: 1, orphans: 1, strokeOpacity: 1, widows: 1, zIndex: 1, zoom: 1
};
exports.NON_DIMENSION_PROPS = NON_DIMENSION_PROPS;